#include <STC15F2K60S2.H>

void latch(unsigned char p2,unsigned char p0)
{
	P2 = (P2 & 0x1f | p2);
	P0 = p0;
	P2 &= 0x1f;
}